package com.example.base.security;



public class SecurityUtil {

    private static final ThreadLocal<SysUser> userEntityThreadLocal=new ThreadLocal<SysUser>();

    public static SysUser getSysUserEntity(){
        SysUser userEntity= userEntityThreadLocal.get();
        return userEntity;
    }

    public static void setSysUserEntity(SysUser userEntity){
        userEntityThreadLocal.set(userEntity);
    }

    public static void removeSysUserEntity(){
        userEntityThreadLocal.remove();
    }

}
